﻿@using ForzaGT3.Data
@model Content
@{
    Content regulation = Content.GetByUrl("Regulations");
    Content prizes = Content.GetByUrl("Prizes");
    Content special = Content.GetByUrl("Specials");
    string lang = string.Empty;
    if (!string.IsNullOrEmpty(Request.QueryString["lang"]))
    {
        lang = Request.QueryString["lang"];
    }
}
<div class="contentheader header shadow">
    FORZA GT3
</div>
<div class="greybgtxt">
    @if (!string.IsNullOrEmpty(lang) && lang == "en")
    {
        @MvcHtmlString.Create(Model.BodyEng)
    }
    else
    {
        @MvcHtmlString.Create(Model.Body)
    }
    <div id="tab">
        <ul>
            <li><a href="#tabs-1">Regulations</a></li>
            <li><a href="#tabs-2">Prizes</a></li>
            <li><a href="#tabs-3">Specials</a></li>
        </ul>
        <div id="tabs-1">
            @if (!string.IsNullOrEmpty(lang) && lang == "en")
            {
                @MvcHtmlString.Create(regulation.BodyEng)
            }
            else
            {
                @MvcHtmlString.Create(regulation.Body)
            }
        </div>
        <div id="tabs-2">
            @if (!string.IsNullOrEmpty(lang) && lang == "en")
            {
                @MvcHtmlString.Create(prizes.BodyEng)
            }
            else
            {
                @MvcHtmlString.Create(prizes.Body)
            }
        </div>
        <div id="tabs-3">
            @if (!string.IsNullOrEmpty(lang) && lang == "en")
            {
                @MvcHtmlString.Create(special.BodyEng)
            }
            else
            {
                @MvcHtmlString.Create(special.Body)
            }
        </div>
    </div>
</div>
